home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12437 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for semaphore example.
  5. Date: Sat, 30 Mar 96 21:11:29 GMT
  6. Organization: none
  7. Message-ID: <828220289snz@genesis.demon.co.uk>
  8. References: <4jc5hd$1vlv@ilx018.iil.intel.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4jc5hd$1vlv@ilx018.iil.intel.com>
  15.            mstahl@f8acc1
  16.            "He Digs Deepest who Deepest Digs. -- M.Stahl, Sort PE,
  17. " writes:
  18.  
  19. >Hi - 
  20. >I'm looking for a simple example of implementation of semaphore in C .
  21.  
  22. Not possible - the C language doesn't support semaphores. You'll have
  23. to go beyond the C language to get this.
  24.  
  25. >(my platform is a SUN workstation).
  26. >Nothing fancy - just the very basic kind: need to keep one child process
  27. >from reading/writing a common file when a 2nd process is dealing with
  28. >that file.
  29.  
  30. You need to system specific facilities provided by your implemenation.
  31. Those are probably Unix specific in this case so try comp.unix.programmer.
  32.  
  33. -- 
  34. -----------------------------------------
  35. Lawrence Kirby | fred@genesis.demon.co.uk
  36. Wilts, England | 70734.126@compuserve.com
  37. -----------------------------------------
  38.